package com.xueyi.operations.domain.po;

import com.xueyi.common.core.web.tenant.base.TBaseEntity;
import com.xueyi.operations.domain.dto.OpFaultAcceptanceDto;
import com.xueyi.common.core.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.v3.oas.annotations.media.Schema;
import com.baomidou.mybatisplus.annotation.TableField;
import static com.baomidou.mybatisplus.annotation.SqlCondition.*;

import java.io.Serial;

import static com.xueyi.common.core.constant.basic.EntityConstants.STATUS;
import static com.xueyi.common.core.constant.basic.EntityConstants.SORT;
import static com.xueyi.common.core.constant.basic.EntityConstants.REMARK;
import static com.xueyi.common.core.constant.basic.EntityConstants.NAME;

/**
 * 故障受理 持久化对象
 *
 * @author lwb
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(name = "故障受理 持久化对象")
@TableName(value = "op_fault_acceptance", excludeProperty = { STATUS, SORT, REMARK, NAME })
public class OpFaultAcceptancePo extends TBaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /** 故障管理ID */
    @Schema(name = "故障管理ID")
    @Excel(name = "故障管理ID")
    protected Long processId;

    /** 受理类型：受理、拒绝 */
    @Schema(name = "受理类型：受理、拒绝")
    @Excel(name = "受理类型：受理、拒绝")
    protected String acceptorType;

    /** 受理用户 */
    @Schema(name = "受理用户")
    @Excel(name = "受理用户")
    protected Long acceptorUser;

    /** 受理用户名 */
    @Schema(name = "受理用户名")
    @Excel(name = "受理用户名")
    @TableField(condition = LIKE)
    protected String acceptorUserName;

    /** 描述 */
    @Schema(name = "描述")
    @Excel(name = "描述")
    protected String description;

}
